<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Administrator
 * Date: 12-8-27
 * Time: 上午11:40
 * To change this template use File | Settings | File Templates.
 */
class ph extends MY_Controller
{
    public function index()
    {
        /**
          *  1 棋友会排行榜
          *  2 对弈排行榜
          *  3 财富排行榜
         */
        $this->load->model('model_weiqi_User', 'user');
        $club = $this->user->formatData($this->user->getTopInfo(1));
        $duiyi = $this->user->formatData($this->user->getTopInfo(2));
        $money = $this->user->formatData($this->user->getTopInfo(3));

        //echo '<pre>'; print_r($club);print_r($duiyi);print_r($money);exit;
        $this->load->view('ph', array('club' => $club['z:row'], 'duiyi' => $duiyi['z:row'], 'money' => $money['z:row'], 'navigation' => 'ph'));
    }
}
